import java.util.*;
public class lianxi28 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        int []a=new int[10];
        System.out.println("请输入十个整数:");
        for(int i=0;i<10;i++){
            a[i]=s.nextInt();

        }
        for (int i=0;i<10;i++){
            for(int j=i+1;j<10;j++){
                if(a[i]>a[j]){
                    int t=a[i];
                    a[i]=a[j];
                    a[j]=t;

                }
            }
        }
        for (int i=0;i<10;i++){
            System.out.println(a[i]+" ");
        }
    }
}
